Add text to the WooCommerce thank you page
When you need to add some "Thank you" message on WooCommerce Thank you page, use the snippet below to your Child Theme>function.php
https://gyazo.com/4eb83cd2f7ef9b3765982b887bc53073
Snippet
/**
* @snippet WooCommerce add text to the thank you page
* @author Rodolfo Melogli
* @testedwith WooCommerce 2.6.7
*/
add_action( 'woocommerce_thankyou', 'bbloomer_add_content_thankyou' );
function bbloomer_add_content_thankyou() {
echo '
Get 20% off
Thank you for making this purchase! Come back and use the code "Back4More" to receive a 20% discount on your next purchase!
';
}